package com.joysuch.wwyt.risk.service;

import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import com.joysuch.wwyt.risk.entity.RiskControllevels;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joysuch.wwyt.risk.entity.dto.RiskControllevelsDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author heqifeng
 * @since 2021-08-31
 */
public interface RiskControlLevelService extends IService<RiskControllevels> {

    List<RiskControllevels> getAllLevels();

    RiskControllevels getById(Long id);

    RiskControllevels getByCode(Long code);

    int deleteById(Long id);

    boolean insertOrUpdate(RiskControllevels riskControllevels);

    List<SimpleSelectListBean> getAllForSimpleSelect();

    List<RiskControllevelsDto> convertToDto(List<RiskControllevels> levels);
}
